import request from '@/utils/request'

const pre = '/fmea/common/stepSymbol'

// 获取过程符号列表
export function getStepSymbollist(query) {
  return request({
    url: `${pre}/list`,
    method: 'get',
    params: query
  })
}

// 新增过程符号
export function addStepSymbol(data) {
  return request({
    url: `${pre}`,
    method: 'post',
    data: data
  })
}

// 删除过程符号
export function delStepSymbol(ids) {
  return request({
    url: `${pre}/${ids}`,
    method: 'delete'
  })
}

// 编辑过程符号
export function updateStepSymbol(data) {
  return request({
    url: `${pre}`,
    method: 'put',
    data: data
  })
}
